<?php
/**
 * @file
 * Displays an exception message.
 *
 * Usage:
 *  - A page that wants to display an exception message should include/require
 *    this page in its 'catch' block(s).
 *  - This page only displays an exception message. It does not terminate the
 *    script.
 *
 * Parameter(s):
 *  - $ex : Exception object.
 *
 * Global variable(s) set:
 *  - None.
 *
 * Global variable(s) unset:
 *  - None.
 *
 * Exception(s):
 *  - None.
 *
 * This file includes/requires:
 *  - None.
 */

// constant(s) =================================================================
//! General exception message.
define(
  "MSG_EX",
  "<p>We seem to be experiencing some difficulties.<br>
  Please try again later.</p>
  <p>If the problem persists, please contact the application's
  developer(s).<br>
  Sorry for the inconvenience.</p>"
);


// implementation ==============================================================
// show exception message
echo MSG_EX . "<p>" . $ex->getMessage() . "</p>";
?>
